package com.decades.application.dto;

import android.os.Parcel;
import android.os.Parcelable;

public class ReferenceDto implements Parcelable {

	
	/**
	 * 
	 */
	private String url;
	private String title;
	
	public ReferenceDto(){
	}
	public ReferenceDto(Parcel in){
		readFromParcel(in);
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(url);
		dest.writeString(title);
	}
	private void readFromParcel(Parcel in) {
		url = in.readString();
		title = in.readString();
	}
	
	@SuppressWarnings("rawtypes")
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        public ReferenceDto createFromParcel(Parcel parcel) {
           
            return new ReferenceDto(parcel);
        }

        public ReferenceDto[] newArray(int size) {
            return new ReferenceDto[size];
        }
    };
}
